package com.tao.YanMoDesignPattern.factory.case1_pattern;

import com.tao.YanMoDesignPattern.factory.case1_pattern.product.GAMainboard;
import com.tao.YanMoDesignPattern.factory.case1_pattern.product.IntelCPU;
import com.tao.YanMoDesignPattern.factory.case1_pattern.product.KinsRAM;

/**
 * @Author Mi_Tao
 * @Date 2023/8/5
 * @Description 装机方案1  Intel CPU +  技嘉主板
 * @Version 1.0
 **/
public class Schemal1 implements AbstractFactory{
    @Override
    public CPUApi createCPUApi() {
        System.out.println("CPU 1156");
        return new IntelCPU(1156);
    }

    @Override
    public MainboardApi createMainboardApi() {
        System.out.println("Mainboard 1156");
        return new GAMainboard(1156);
    }

    @Override
    public RAMApi createRAM() {
        return new KinsRAM();
    }
}
